
public class ListBookControl implements ICommand {
	public String name(){
		return "Static";		
	}
	StaticBook cr = new StaticBook();
    
	public void execute(String...args) {
        String com = null;
		Boolean r = true;
		
		do{
			
		System.out.print("command: ");
        
		com = Text.input();
		
			if (com.equalsIgnoreCase("add"))
			cr.add();
			
			if (com.equalsIgnoreCase("list"))
			cr.list();
			
			
			if (com.equalsIgnoreCase("del"))
				cr.delete();
			
			if (com.equalsIgnoreCase("left")) 
				{r = false;
				System.out.println("static finished succesfull");
				}
			if(com.equalsIgnoreCase("exit"))
			{System.out.println("the program has finished");
	        System.exit(0);
			}
			if(com.equalsIgnoreCase("exit") || com.equalsIgnoreCase("list") || com.equalsIgnoreCase("del") || com.equalsIgnoreCase("add"))
			{}
			
			else System.out.println("command not found ");
			
		}
		while(r);
	}

			
			
			
		
		
        
		
public String info() {
		
		return "Static repository";
	}








}
